/*
 * TCSS 445 - Major Project
 * 
 * Author: Chris Davidson
 * Author: Dallas Rosson
 */
package model;

/**
 * Patron
 * 
 * A datatype to represent a patron for the Newport project.
 *
 * @author Dallas Rosson
 * @author Chris Davidson
 * @version 1.0, 28 May 2012
 */
public class Book {
    
    /**
     * The book title.
     */
    private String my_title = "";
    
    /**
     * The book author.
     */
    private String my_author = "";
    
    /**
     * The book ISBN.
     */
    private int my_ISBN = 0;
    
    /**
     * The books publication year.
     */
    private int my_year = 0;
    
    // Getters
    
    /**
     * @return The title.
     */
    public String getTitle() {
        
        return my_title.toString();
    }
    
    /**
     * @return The author.
     */
    public String getAuthor() {
        
        return my_author.toString();
    }
    
    /**
     * @return The ISBN.
     */
    public int getISBN() {
        
        return my_ISBN;
    }
    
    /**
     * @return The year.
     */
    public int getYear() {
        
        return my_year;
    }
    
    // Setters
    
    /**
     * Sets the title to the passed in value.
     * 
     * @param the_title The patrons name.
     */
    public void setTitle(final String the_title) {
        
        my_title = the_title.toString();
    }
    
    /*
     * Sets the author to the passed in value.
     * 
     * @param the_author The patrons address.
     */
    public void setAuthor(final String the_author) {
        
        my_author = the_author.toString();
    }
    
    /**
     * Sets the ISBN to the passed in value.
     * 
     * @param the_ISBN The patrons state.
     */
    public void setISBN(final int the_ISBN) {
     
        my_ISBN = the_ISBN;
    }
    
    /**
     * Sets the year to the passed in value.
     * 
     * @param the_year The patrons zip.
     */
    public void setYear(final int the_year) {
        
        my_year = the_year;
    }
    
}
